package com.bsoft.gol.hcs.visitrecord.entity;


import javax.persistence.*;
import java.util.Date;

/**
 * @Author: lanyu
 * @Description: his数据同步任务执行记录表
 * @Date: create in 2022/5/30 11:00
 */
@Entity
@Table(name = "data_sync_scheduled_info")
public class DataSyncScheduledInfo {

    private Long id;
    private String time;
    //任务类型：1 门诊记录 2 住院记录 3 体检记录 4 检验报告 5 检查报告 6 病理报告 7 电子病历 8 医嘱记录 9 手术记录
    private Integer type;
    private String orgId;
    //任务执行状态 0 未完成 1 已完成 2 失败
    private String status;
    private Date beginTime;
    private Date endTime;
    private Long todayTotal;//今日记录获取总数
    private String remarks;
    private Date createTime;

    @Id
    @Column(name = "id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    @Basic
    @Column(name = "time")
    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }
    @Basic
    @Column(name = "type")
    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
    @Basic
    @Column(name = "org_id")
    public String getOrgId() {
        return orgId;
    }

    public void setOrgId(String orgId) {
        this.orgId = orgId;
    }

    @Basic
    @Column(name = "status")
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
    @Basic
    @Column(name = "begin_time")
    public Date getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(Date beginTime) {
        this.beginTime = beginTime;
    }
    @Basic
    @Column(name = "end_time")
    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }
    @Basic
    @Column(name = "today_total")
    public Long getTodayTotal() {
        return todayTotal;
    }

    public void setTodayTotal(Long todayTotal) {
        this.todayTotal = todayTotal;
    }

    @Basic
    @Column(name = "remarks")
    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }
    @Basic
    @Column(name = "create_time")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
